diff --git a/FB2Library/FB2File.cs b/FB2Library/FB2File.cs index ba53dd7..43f5b6d 100644 --- a/FB2Library/FB2File.cs +++ b/FB2Library/FB2File.cs @@ -103,7 +103,7 @@ public void Load(XDocument fileDocument,bool loadHeaderOnly) _styles.Clear(); - IEnumerable xStyles = fileDocument.Elements(_fileNameSpace + StyleElement.StyleElementName).ToArray(); + IEnumerable xStyles = fileDocument.Root.Elements(_fileNameSpace + StyleElement.StyleElementName).ToArray(); // attempt to load some bad FB2 with wrong namespace if (!xStyles.Any()) {