fix bug when drawing stroke mode cause error for drawing a line stroke