Fix autoflush-caused integrity error.