fix an api 7 specific error regarding how we end the loading animation on failure