It does break on 0, that was what I was trying to address with the line you commented on above. It would be better to check > 0 there though since min can be the same as max.