Obstacle correction