Fix loading file exception