fix exception if row contains null value