Fix bug in Mailer service