The ruins of a much older stone temple can be seen near the modern viharn. This structure probably dates from the 14th century, a period which saw a lot of building in Northern Thailand.