fix border condition in rra selection of rrd_fetch