Fix headerLines chunking bug for #239