Chart rendering fix