Fixed a bug where callback to a email alert would fail