fixes variable reference.