fix errors of plan improvement
bugs fixed