Fix incorrect subtree condition
Merge pull request #63 from eng1neer/master-dev

[!] Subcategories list was built incorrectly under some conditions. Fixed.