fixing broken socket