fixed webkit resizing bug