fixed resize weirdness