fix minimal recursion