Enemies are created before trees, so that increasing tree amount does not lower the amount of enemy bases.
I have updated this mod to latest Factorio version (1.1) https://mods.factorio.com/mod/PrioritizeEnemiesPATCH