fixed undo stack..