Fixed debugging in Connection