Fix layer.states.switchInstant