I'm writing some LaTex notes on optimization using the package optidef and I noticed a problem with the 'identation' I'm obtainig. Let me show you two examples. While the code
\begin{mini*}
{}{\langle x,c\rangle}{\label{SOCP}}{}
\addConstraint{A(x)}{\succeq_{_{L}}b}
\addConstraint{x}{\in K.}
\end{mini*}
works perfectly, the following outputs really poor alignment.
\begin{mini*}
{}{-\sum_{j\in [k]}n_j,\log(\beta_j)}{}{}
\addConstraint{\sum_{j\in [k]}\beta_j}{=1.}
\end{mini*}
However, I'm not able to figure out what exactly is causing such difference. Can anyone help me to solve this issue?

\documentclassand the appropriate packages so that those trying to help don't have to recreate it – Peter Grill May 20 '19 at 19:48