hopefully fixing the loading issue when the connection fails