device: duplicate the config earlier to avoid using stale data