Fixed issue with emailer