bugfix in templatesystem om mails te versturen