hide loading bar on errors as well