Bugfix 2 for search.php