bug fix for PlotLDOS