fixed a init bug in event