Fix at least the worst re-sizing behavior.