bugfix for rangefetch
bugfix for rangefetch