Update invitations_controller.rb

bug fix