fixed redo problem