Fixed a bug in password class