Fix open flags.