fixed connect on linux