Fix a bug in ajaxproxy