Fix dense nlp solver.