fixed a bug that had issues if the first line was not a # header.