loading gif goes away on error