 			callbackName = iqCallback;
 			callbackScope = iqCallbackScope;
 			callback = iqCallbackFunc;
+			errorCallback = iqErrorCallback;
 		}
 
 		/**

		private var myCallbackScope:Object;

		private var myCallbackFunc:Function;

		private var myQueryName:String;


		 * @param	iqCallback The function to be called when the server responds to the IQ
		 * @param	iqCallbackScope The object instance containing the callback method
		 */
		public function IQ( recipient:EscapedJID = null, iqType:String = null, iqID:String = null, iqCallback:String = null, iqCallbackScope:Object = null, iqCallbackFunc:Function = null, iqErrorCallback:Function = null )
		{
			var id:String = exists( iqID ) ? iqID : generateID( "iq_" );

