fix bug about Open File In Memory