Fix invalid variable reference.