Fixing the connection method