Second try of fixing the biome bug.