Fix bug in display charts