The situation came to light after a leaked email was shared on X