fixed bug emailCtrl