fix chart refresh bug in dashboard