Fixed variable reference warning.