diff --git a/phpgwapi/templates/justweb/head.inc.php b/phpgwapi/templates/justweb/head.inc.php
index cb8a3fa7a4..9990f5b5d2 100644
--- a/phpgwapi/templates/justweb/head.inc.php
+++ b/phpgwapi/templates/justweb/head.inc.php
@@ -34,6 +34,6 @@
$tpl->set_var('font_family',$phpgw_info['theme']['font']);
$tpl->set_var('website_title', $phpgw_info['server']['site_title']);
$tpl->set_var('body_tags',$bodyheader);
- echo $tpl->finish($tpl->parse('out','head'));
+ $tpl->pfp('out','head');
unset($tpl);
?>
diff --git a/phpgwapi/templates/justweb/head.tpl b/phpgwapi/templates/justweb/head.tpl
index ddcc5b6b8a..f322709ae1 100644
--- a/phpgwapi/templates/justweb/head.tpl
+++ b/phpgwapi/templates/justweb/head.tpl
@@ -20,7 +20,6 @@