LoadingInfoDialog loop fixed and optimized