fix server connect()