Often times, multiple commands in the shift-queue are ignored when building buildings.
The villager just skips for example 5 barracks and goes over to the next task, like gathering ressources.
This happens frequently and randomly, unpredictably.
Please have a look and fix.