Fix for invalid range headers and range[1] being 0