fix header-only file crash, fixes #67

fix for #67  , verified locally.