fix e vs event bug