Fixed compilation warning from unused variable.