Fixing the resize window