fixed loading file functionality
fixed loading file functionality