fixed first if issue in search