fixing bug where items could be removed from invoices accidentally