fixed bug in friendships controller