Fix array offset for PHP 5.3