Fix: Proper initialization of connection