Fix for line tool