Fixed categories bug