Fixed IE8 issue with resizing