Fixed missing values bug