Bugfix when internet connection interrupts