fixed bug

fixed the problem caused by open one file for two times