Fix error on PHP 5.3 (reference this in closure)