Used wrong variable