Fixed reading header format