fixed bug with saving multiple contacts