Fixes bug in invitations.