Fixed a double closure bug.