Fix typo in device.rb