Fix forgotten new keyword in serach code