Fixed problem in PHP 5.5