Fixed incorrect grid index during probing