fix categories bug