Fix add bug for categories