Fix resize window perform