Incorrect variable reference