Former judge to help county fix public defender's office