Fix password generate