Fixed a bug with passcode status judgement.