fix quadratic objective error