Fix problems caused by typo for PHP5.2 users.