Fixes insert defect