fixed reference to line instead of text