Use a fine thread that blends with the ditch. I don't think it's possible to stay in the ditch 100% of the time. Sometimes the problem is that the ditch is not consistently pressed within a seam, or the direction changes when you hit a cross seam. That makes it more difficult.