fix problem with chart error output