References friendships and mailmessages fixed