Fix undo bug on recent color.