fixed unreferenced variable.