[BUGFIX] QueryGenerator getTreeList negative ids