Fixed bug in pnl at line 344.
comment out some debug