Corrected an error with null values.