update detect device for issue #8