Fix chart length issue.