Fix replanning time