dot global variable fix