fixed a bug with getCategories(), getCollections() and getCopies()