Used the wrong variable