UI-630: Fixed a bug in device manager