I think I just solved a longstanding bug in the rrd_update routine