sidestep a bug in winresize