fixed error emails