Fix bug when facet is not defined