Compatibility issue with PHP 5.3 fixed