fixed some errors in order mailer