Fix error/warning in closure.