fix error on email templates export