fixed GenerateStrategy function
make order when strategy's children has OnlyIf Annotation