fix define global data with null value