fix bug

1."Math.min l1, l2 == 0" is equivalent to "Math.min(l1, (l2 == 0))".I
think this is not the author would like to express.
2."[0...l1 + 1]" is equivalent to "[0..l1]".