event bug fixed