fix for ajaxrequest