reachable grids bug fix