Fix canUndo, canRedo
Merge pull request #83 from irskep/random-stuff

Fix canUndo, canRedo