Try to fix window.location.replace() not work with edit dataset