Fixed crash when no device was ever plugged in