fix changepwd bug