Fix template source