Fix broken socket lookup