Fixed formatting and cache start.lineIndex