Made loading bar disappear when it errors out