bugfix for rangefetch