Fix template on first load