removed bug in mailer class