Fix comparison. It should be <=, not <.