Corrected an error on generating some passwords