Fix the bug that was preventing upward resizing.