fixed $this binding in closure for 5.3