fix professors search bugs