bug fix in invitation