Corrections to grid neighbor search