bug fix for invites