Fixed bug in chart printing and downloading.