Fixed a major bug with closures. See Test-23.