fix loading file error bug.