Hopefully fixed temperature array bug