Local path replanning