small fixed aimed to make it work with php-5.4.10