Fixed onResize()