Fix some component's event bugs.