fixed regridding issue