fixed error with mail template