Return something when inserting items
Fixed a reference issue