bugfix resize window