fixed if column type null error.