fix invitations controller