Fix password generation