Fixed the connect button bug.