fix pre mailer issues in airmail templates