fix the bug for plan_add template file