 			}
 			openingStreamTag += ' to="' + domain + '" version="' + XMPPStanza.CLIENT_VERSION + '"';
 
-			if (type == STREAM_TYPE_FLASH_TERMINATED || type == STREAM_TYPE_STANDAND_TERMINATED)
+			if (type == STREAM_TYPE_FLASH_TERMINATED || type == STREAM_TYPE_STANDARD_TERMINATED)
 			{
 				openingStreamTag += ' /';
 			}

		 */
		protected var _incompleteRawXML:String = "";

		private var _streamType:uint = 1;
		private var presenceQueue:Array = [];
		private var presenceQueueTimer:Timer;


		 * Stream type lets user set opening/closing tag.
		 * <code><stream:stream /></code>
		 */
		public static const STREAM_TYPE_STANDARD_TERMINATED:uint = 1;
		/**
		 * Stream type lets user set opening/closing tag.
		 * <code><flash:stream></code>
