Fixed a small bug with password generation.