Fix device ID being taken from `options` instead of `json`