Additional template error handling