fixed charts bugs