issue #3419 fix bug for insertDefaultItem and insertCustomItem