Fixed an error in perlin generation.