fix zero-index newline for first char