Cfindex and category/categegorytree

although I am relatively new in terms of Lucee but have been working in the development with ColdFusion for a long time.
When converting a site from CF to Luceee I came across the following problem with cfindex.
The collection is created with cfcollection and the categories = “yes” option.
cfindex runs via a query and for category and categorytree. The query contains different strings in these two fields. A dump of the collection contents, however, shows that these strings contain the strings “category” or “categorytree”.

does anyone know the problem?