Fix K-line data generator