Fixed removeFriend function