BUGFIX: load template file