FIX: error in socket connection establishment