Fix correct socket chosen