core: fix previous/next address in cfg