Fixed a bug in the line drawing routine.