Fix RRD update logic