fixed errors of categories