datacube bug fix