Enemy sometimes never attack

I bought AoE 2 definitive edition with Dynasties of India, Lords of the West and Dawn of the Dukes expansions. I noticed in many sceneries of various campaigns suddenly the enemy stops to attack and to create new troups so it becomes easy to win also at hard level difficulty. Can it be a problem with my PC potentialities or is it a bug of the game? Someone else have my same problems?