fixed temptuple issue