Fixed device name bug in scanner.py