fixed errors in invites