Debug: leaf with no list raised constraint error in Search recursive function