profit_loss fix finished.