Fixed a problem that the canvas was being selected while drawing.