fixed 500 on release and probably whatever was being thrown on email results function