Fix verification of grid