fix get_pwd on some clients