fix bug for groups/invitations#create (when not using js)