fixed bogus globals