fix dialog extend