Fix bug: template missing when rejecting transaction