fixed bug in mail templates