Fix flow when no grids