Fix some undefined variable warnings.