fix some range request bugs