fixing email alert spec