fixes search appointments