Bug fix: correctly report template overwrites