Fixes error in ActionMailer