Was missing proper flag in library_query code, collections are also id-users of their children collections.