Fix bug in histogram module: error when filter terms have space.