Fixes bug in email invitations.