templates dir correction