Fix declaration null value of variable