Fix unreferenced variable