fixed bug, should scope category model