fixed bug with having multiple connections