Used to wrong variable, this is fixed.