fix bug in insert item