patch issue for categories with spaces