fix regression introduced by typo in password generation code.