fixed revert logic. (pushing state on stable->non stable transition)