minor bug fix in temple