fix a bug of create event