fixed templates directory