It happens fairly often to me. Seems to be tied to where I click when I give the move order. Clicking on or too close to another unit or structure does exactly what you are saying. For those of us who want 10,000 units on the board, that happens a lot.