Fixed comatability to PHP 5.3