fix OpenFile()