Fixed some tree spawning bug.