Fixed an OOB exception from using the wrong variable, yay