Fix on translatePolygon

Loop bug fixed