fixed issue with inviting