fixed line tool

- if changing tool while making line, line is destroyed.