Fixed this.temp getting assigned to a wrong variable.