Bugfixes in invitation controller