fix error in recomputing filters

when switching from a function filter to a bounds based filter
(exact or range), bounds were being compared using the wrong
index, leading to incorrect results.