Something else to try is targeting the unit furtherest back in the enemy formation when your units are engaged in melee, causing the undershoots to land on their men, not yours