Added fix to draw vertical lines properly.