PHP Compability fix