Fix dedupe reference error