BUG: BPoly: fix the derivative