Finalize temporary next variable