fix substep error