working dynamic charts fix