fix conneccion to server was unseccessfull