fixed file open error