fixed compability for PHP 5.3