Fixed shift bug with virtual device