fixed (?) a wrong handling of network error