fixed error in email routing