Fixed the 'artifacts on steep terrain' bug.