Fix typo in get_devices