fix missing value code