Fixed bugs on categoryViewer