fixed drawing a line