Fixes bug with the AjaxUpload and page refresh