fixed friend/unfriend bug