Only resize in certain cases