Fixed actionmailer logic bug