fixed: incorrect removal of map element from connections collection