Pathing issue

See this clip where units with attack move command to in front of enemy wall have irregular pathing. They correctly bring out the torch but are unable to target onto the gate near the attack move waypoint.