fix list plotting in plotPDF