Autofocus corrects the second time that the modal is open