[FIX] imporved window leak when showing dialog