fixed bug with removed sockets