fixed bugs in contacts