fixed self.connect issue.