Fixed missing value code