Fixed depreciation bug