fix bugs at create plan