try to fix parents on visited states