Fix wrong password generation.