fix pwd error