fix file not open error bug