Fix the profit_loss_field js error.