Fixed an unused variable warning.