t642: fix getting template error.