fixed double event bug