Fix global flags reference