fix auto finishing exam bug