fix error with condglobal