Fix variable used only in assertion.