fix for displaySparkline