Fixed the onresize call