fixed some bugs with accepting invites