Fix error with null value.