fix file open