Fixing defects in pack/unpack colors