 			
 			_data[offset] = value;
 			
-			offset %= _format.dwordsPerVertex;
+			offset %= _format.size;
 			if (value < _minimum[offset])
 			{
 				_minimum[offset] = value;

				}
			}
			// make sure the ByteArray position is at the end of the buffer
			bytes.position = start + formatIn.dwordsPerVertex * count * dwordSize;
			
			stream.data = data;
			

			
			var numValues 	: int 	= data.length;

			if (numValues % _format.size)
				throw new Error('Invalid data length.');

			for (var i : int = 0; i < numValues; i++)
			{
				var value 	: Number	= data[i];
				var ii		: uint		= i % _format.size;
				
				if (value < _minimum[ii])
				{
