Herp derp, used the wrong variable name without checking