Fix linecut fatal crash.