fix bugs in hedging example