fixed accessing contacts bug