Although Digital Elevation Model (DEM) has become major data for the analysis and display of terrain, however, contour maps are still indispensable for several reasons. Traditional contour maps are drawn manually. Recent popularity of GIS makes the production of contours from DEM much more efficient. During an experiment, we found that the contour lines automatically generated from 40meters DTM of Taiwan demonstrated unreasonable zigzag patterns, including horizontal ripples, marginal discontinuity and irregular warping. These problematic patterns were resulted from the problematic quality of DEM. In this research, we detect these unreasonable patterns by density of contour lines and attempts to improve the quality of the automatic generation. We find that horizontal ripple patterns could be eliminated by smoothing DEM data.