Fix for error 500 mailer exception.