Torch not following the path and torch touching the plate

Does some know why does this happen, its cutting a rectangle, cuts 3 sides perfect and the last side the torch completely touches the sheet metal, and while moving in the x axis, at the same time it starts moving forward in the Y axis.
The strait cut, was done later once I reset the machine.