troubleshooting template failure