box: Fix the timing of large size check when updating box size.