fix globalScale in overflows