Fix revert glitch