Fix compatability with PHP 5.3