Fix step root conditional logic.