fix bug with null variable's properties