Fix collecting list of partitions for device