Template folder error fix