Fixed a bug in multi facet query