bugfixing the new AJAX client