he remained in office until the term has expired as dictated by law