weirdness with resize