added activeState fallback