Do not consider disabled dof in optimization (#27)