DeleteData: fix color table remap algorithm