fix small bug when using mailer in development mode