Fixed #190, where depreciation on licenses would not be saved