fixed problem in password generator