solve the problem that the dof value out of limits