Fix adding nonlinear constraints