fix old connections being duplicated