Fix an issue where seekg was seeking to the location of the constant ios::beg instead of the start of the file.