fixed error in invitation path