fix bug of not setting zoomed correctly in windows