Fixed parsing error in chart dialog