fix resize window