Fixing paths to Smarty.