Print better parents list when loop detected