Fix for 5.3 and $this inside a closure.