workaround fix checking device path.