Changed default() to d() in templates