Ensure that weighting vectors are correctly back-transformed before the penalty of the objective function is computed.