Fixed compatiblity with PHP 5.3