Make sure stats flags are updated for envelope bags