Fixed dedupe buffer recursion