fixed the sense of a comparison to be consistent with the rest of the code