Fix autofocus in modals