Fix warning variable set but not used.