Fix bug where frequency table didn't filter results.