Changes back build_sampling_grid