fix the real-value updating dual bug