Fixed isLoaded error