some bugfixes so that query for represent() of allFeatures() works