facets undefined bug fixed