Fixed loading file bug