Fixes invitations not working.