key_commit: Fixed a bug in the mortgagecodesbrw function