fix opening result templates runtime exception