header was not updated in StorageHandler::GenerateEventBuffer if the buffer was resized