Fixed Mac OSX bug when connecting new devices.