fixed modal-active state in WindowManager