prevent error for _getNextLineIndex