fix bugs: find category with non-existent slugs. remove some redundant action