Working on palette undoing