template loader fixed