fixes depreciation error