fixed sign error in objective function (data-dependent part)