Fixed bug where case of category is not ignored