Fix errors with sparkline.