fix unknown device detection