fixed event bug