Fixed a bug that the plan interval is error.