Fix resize event