datacube: fixed problems with some datacube files