fixed build recurse helper bug