Fix re-initialize bug.