fix domain error with emails