Fix ajax loading bar's visibility