fix wrong event type emit in setChildNodesState