fix cursor drawing when in stroke mode