small fix in email controller