Use correct object to get filter from hashmap. (npe exception)