fix error of plan