fix dialog open issue