fix typo that leads to int.decode
test: + invalid_device, empty_id