Fix duplicate object insertions