Fix entity filtering in counters page