fix issue with  in closure for PHP 5.3.x
fix code style issue