Correct the ranking in the Jacobian. Add missing dofs for romeo.