chagnes: if global var not exist, use null instead