don't crash on invalid range format ("1-X")