Fixed the modal hidden issue.