fix dialog focus