bug fix: stop inserted when wrong target line is input