fixed infinite e bug