Fixed error with missing columns detection.