fix chart refresh issue