xbin: fixed custom palette parsing