Added a fix for reading a file with a missing header