revert heap write