Fix unread warnings

For the unread local var warnings.