fixed a problem with selecting Devices