Fix error if network unavailable