Fix relese inventory
Merge pull request #1590 from umpirsky/fix/finite-cleanup

Finite cleanup