fix send invitation
fixes for inviting