fixed the list_connections procedure