Bug fixed for redo method