Fix workaround on resize too