fixed bug in run_pdos