Fixed issue with MOS password routine