Fixes inflate logic for closure
Merge pull request #659 from yurydelendik/inflate-closure

Fixes inflate logic for closure