fix autofocus in popup