Fixed heightmap OOB issue