fix dialog centering on windows