fixing ArgumentError in helpers/filter.rb; Issue 532