Fix issue of initial loading.