fix for smarty 3