fixed bug in makePassword().