Fixes a bug with PHP 5.3.