fixed event bug, test script pulls automatically