Fix: Recording any action for undo should wipe out the redo stack