resize window bug