Changed TEMPLATE_DIR