fixed server connect issue