fixes for global dofs