fixing invitation problem