Fix lazy connection

Fix after this commit 0071b80938f5a25d0347f9535b4919e0eca836ca.