Fix osd_device index order