Fix atLeast/atMost.