fix file cannot be opened