Fixed a bug with the enabling of buttons while connecting