fixed problem with Charts