Fixed bug if devid contains spaces