Fixed tiny bug in invitation controller