Fix unreferenced variable error.