Fix 'SharedList re-writes its size with wrong value.'