* Buffer.cpp (readHeader): restore the default index after cleaning up.