fix bugwhen user close modal and redirect to /.