Fix closure problem
Merge pull request #91 from ernoma/bug

Fix closure problem