Correct a logic error in the Range filter's apply() method