fixed resizing weirdness