fix the issue of planning mode