error in redirect when not connected to net