Fix pagination for invitations controller