Fixed compatibility with PHP 5.3
Fixed compatiblity with PHP 5.3