Fix template def missing files