attempt to fix device detection