fix deltaXY issue