fixed bug insert