Fix bug in Quadratic{ExtendInner}