Fix issue with PHP5.3 and closures