fix invites (complements 261f19edd603e8e3df734294c750ffdf9aded1cd)