fix trigger event bug