Fix $this in closures.