Update last only after flush