fixed bugs in facet implementations