Bugfix

0 shouldn't be a deviceID as it represents a False value