[changed] small fix for smarty class