Fix loading bar not going away