Bug fix for inviting via email