bug fixes in cube regridding