graph ajax update fix