Fix for runing on php-5.3