global variable default value fix