Fixed loading error on first-time