diff --git a/phpgwapi/js/dhtmlxtree/sources/dhtmlxtree.js b/phpgwapi/js/dhtmlxtree/sources/dhtmlxtree.js
index c88c491c12..2c695af1b5 100644
--- a/phpgwapi/js/dhtmlxtree/sources/dhtmlxtree.js
+++ b/phpgwapi/js/dhtmlxtree/sources/dhtmlxtree.js
@@ -439,6 +439,7 @@ function dhtmlXTreeItemObject(itemId,itemText,parentObject,treeObject,actionHand
* @topic: 0
*/
dhtmlXTreeObject.prototype.loadXML=function(file,afterCall){
+ afterCall = afterCall || this.AJAX_callback;
if (this._datamode && this._datamode!="xml") return this["load"+this._datamode.toUpperCase()](file,afterCall);
var that=this;
if (!this.parsCount) this.callEvent("onXLS",[that,this._ld_id]);