Workaround on resize events