fix bug origin by resetAB()