Fix last substep deactivation.