Fixed a bug that was causing the size on disk to not be updated in certain
cases.