undo button glitches

Other Terra Nil issues: