Use the correct flag in file_open()