Fix controller class search routine.