bugfix for invites