fixed loading gif not displayed