Solve issue of dialog not showing on some Mac's