fix the bug in get all device types