Fixing error when no depreciation