fix GRID search on PHP 5.5