fixed unique categories bug