fixed segv if first line of file is HR, closes #27