Fixed an error with the devicelist