fix save pwd error