Fixing for using in PHP 5.3 environment.