small bug fix for invites