fixed a problem connecting