Fixed flaw in insert