Fixed file open flags.