fix index error on facet ranges