Fixed the password scramble function.