hot fix from PHP 5.5 to 5.3