infinite loading fix