Fixed out of range exception in GetLine.