Wrong variable reference