Fixed a bug in facet