Fixes to add item procedure.