Fixed mix-up between resize and reserve.