bug fix generate password