revert bad memory hack