Fixed broken horizontal facet detection