Fix dense jacobian passing.