Fixed writing a sequence, include Int32 instead of UInt32