Fixed crashing bug for empty filters.