resize window fixes