Previously, the code did not expand the size properly when a default size was already set. Reftest included.