A-move targets buildings over enemy units?

I just had an entire crossbow army wiped out because they only wanted to target a farm instead of the army in front of them with a-move… Possibly the farm was the closest when i pressed the a-move, but still…

Is this a bug or what?

Are you sure you didn’t accidentally click on the farm while going to A-move?