Fixes @template.lib.php