fixed bug in if-else loop causing dataTable not loading when facet is
clicked