Draw lines instead of dots. Fix a bug.