fix faulty flag fracas