fixes the loading progress problem