Invite emails related fixes.