had global flag set twice.