Updating of category_ids by a categories map implemented.