BUGFIX: wrong template file hook