Fix for contacts storing logic

Fix for contacts storing logic