fixed the problem of category view