Fixed a bug with the connect button.