Fix bug in converting closure.