Fix resize event binding