fixed an issue with certain api query formats
Merge branch 'hotfix-api-category'