fix return to inventory for component