bug in terrain generation