Fixed ralph_device_id bug