Getting the path of [number] either results to cycle or is very long

hey, posted a workaround for this issue here: 'Getting the tree for 1 either results to cycle or is very long' error (error appears after upgrading to the recent 1.3.19)