Bug fix for category field