fixed categories bug