bug fixed: switch events don't triggerred