fix bugs in invite finalization