Trade settlement: resent fills count twice, PnL uses the wrong cost and bad fills get through · Groundwork